#pragma once
#include<stdio.h>
#include<stdlib.h>
#include<stdbool.h>
typedef struct TreeNode
{
	struct TreeNode* left;
	struct TreeNode* right;
	int val;
}BTNode;

BTNode* BuyNode(int val);
BTNode* CreateTree();
bool IsSameTree(BTNode* p, BTNode* q);
void QuickSort2(int* a, int left, int right);
void Swap(int* a, int* b)
{
	int tmp = *a;
	*a = *b;
	*b = tmp;
}
